package com.liws.hellojuc.map;


import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author ：liweisheng
 * @date ：2022/4/5 9:10
 * @description：
 */
public class ConcurrentHashMapTest {

    public static void main(String[] args) {
        Map<String,String> map = new ConcurrentHashMap<>(8);
        new Thread(()->map.put("1","芝麻饼")).start();
        new Thread(()->map.put("2","芝士蛋糕")).start();
    }

}
